<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="../dist/index.css">
</head>
<body>

<div id="app"></div>

<script src="https://cdn.jsdelivr.net/npm/vue@next"></script>
<script src="../dist/index.js"></script>

<script>
    console.log(window.V3ComponentsWsj)

    const app = window.Vue.createApp({
        template: `
            <div>
                <ly-button label="label"></ly-button>
                <ly-button>插槽内容</ly-button>

                <ly-input/>
                <ly-input status="error" ref="myInput"/>
                <button @click="outerFocus">outerFocus</button>
            </div>
        `,
        setup() {
            const inputRef = window.V3ComponentsWsj.Input.use.ref('myInput')

            return {
                outerFocus() {
                    inputRef.value.methods.focus(false)
                },
            }
        },
    })

    app.use(window.V3ComponentsWsj)

    app.mount('#app')
</script>

</body>
</html>
